package com.yx.model.factory.abstra;

/**
 * @author yangx
 */
public class Main {
    public static void main(String[] args) {
        AbstractFactory factory = new FactoryA();
        factory.keyboard().produceKeyboard();
        factory.mouse().produceMouse();

        AbstractFactory factoryB = new FactoryB();
        factoryB.keyboard().produceKeyboard();
        factoryB.mouse().produceMouse();
    }
}
